package com.ssy.lingxi.platform.manage.api.hystrix.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.feign.paas.OnlineServicePASSControllerFeign;
import com.ssy.lingxi.platform.manage.api.model.dto.onlineservice.EnableStatusReq;
import com.ssy.lingxi.platform.manage.api.model.dto.onlineservice.IdReq;
import com.ssy.lingxi.platform.manage.api.model.dto.onlineservice.OnlineServiceAddReq;
import com.ssy.lingxi.platform.manage.api.model.dto.onlineservice.OnlineServiceUpdateReq;
import org.springframework.stereotype.Component;

/**
 * @author wyx
 * @version 2.0.0
 * @date 2021-11-16
 */
@Component
public class OnlineServicePASSControllerFeignFallback implements OnlineServicePASSControllerFeign {

    @Override
    public Wrapper<Void> add(OnlineServiceAddReq req) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<Void> update(OnlineServiceUpdateReq req) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<Void> enable(EnableStatusReq req) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<Void> delete(IdReq req) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> findConfig() {
        return Wrapper.failService("服务调用异常");
    }
}
